home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / include / stddef.h < prev    next >
C/C++ Source or Header  |  1990-07-23  |  550b  |  24 lines

  1. /* The <stddef.h> header defines certain commonly used macros. */
  2.  
  3. #ifndef _STDDEF_H
  4. #define _STDDEF_H
  5.  
  6. #define NULL   ((void *)0)
  7.  
  8. /* The following is not portable, but the compiler accepts it. */
  9. #define offsetof(type, ident)        ((size_t) &(((type *)0)->ident))
  10.  
  11. typedef int ptrdiff_t;        /* result of subtracting two pointers */
  12.  
  13. #ifndef _SIZE_T
  14. #define _SIZE_T
  15. typedef unsigned int size_t;    /* type returned by sizeof */
  16. #endif
  17.  
  18. #ifndef _WCHAR_T
  19. #define _WCHAR_T
  20. typedef char wchar_t;        /* type expanded character set */
  21. #endif
  22.  
  23. #endif /* _STDDEF_H */
  24.